import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
import vueJsx from '@vitejs/plugin-vue-jsx'
import tailwindcss from '@tailwindcss/vite'
// 按需引入
import createAutoImport from './auto-import'
export function createVitePlugins(isProd = false) {
    const vitePlugins = [
        vue(),
        // Inspector(),
        vueDevTools({
            launchEditor: 'code',
        }),
        tailwindcss(),
    ]
    vitePlugins.push(vueJsx())
    vitePlugins.push(...createAutoImport())

    return vitePlugins
}
